﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS_Service.Models;

namespace WCS_Service.DomianService.Interface
{
    /// <summary>
    /// 访问RCS超时操作
    /// </summary>
    public interface IRcsOvertimeDomainService
    {
        event Func<string, Task> OvertimeCreatTaskChange;

        ConcurrentDictionary<string, WaitRcsResultModel> WaitResultQueue { set; get; }
        Task OverTimeCheck();
        Task<WaitRcsResultModel> RemoveWaitQuere(string key);
        Task AddWaitQuere(string key, string apiName, object para);
    }
}
